package com.yang.service.Impl;

import com.yang.mapper.SysPermissionMapper;
import com.yang.pojo.SysPermission;
import com.yang.service.SysPermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Author 杨天可
 * @Date 2021/6/11 10:27
 * @Version 1.0
 */
@Service("sysPermissionService")
@Transactional
public class SysPermissionServiceImpl implements SysPermissionService {
    @Resource
    SysPermissionMapper sysPermissionMapper;

    @Override
    public SysPermission findPermissionById(Integer permissionId) {
        return sysPermissionMapper.selectByPrimaryKey(permissionId);
    }
}
